#ifndef _BASIC_TIMER_H_
#define _BASIC_TIMER_H_

struct basic_timer_reg {
    volatile unsigned int CR1;

    volatile unsigned int CR2;

    volatile unsigned int SMCR;

    volatile unsigned int DIER;

    volatile unsigned int SR;

    volatile unsigned int EGR;

    volatile unsigned int CCMR1;

    volatile unsigned int CCMR2;

    volatile unsigned int CCER;

    volatile unsigned int CNT;

    volatile unsigned int PSC;

    volatile unsigned int ARR;

    volatile unsigned int RCR;

    volatile unsigned int CCR1;

    volatile unsigned int CCR2;

    volatile unsigned int CCR3;

    volatile unsigned int CCR4;

    volatile unsigned int BDTR;

    volatile unsigned int DCR;

    volatile unsigned int DMAR;
};

void init_timer6(void);

#endif
